<?php

namespace AppBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * P2pFcodeTender
 *
 * @ORM\Table(name="p2p_fcode_tender", indexes={@ORM\Index(name="red_id", columns={"red_id"}), @ORM\Index(name="tender_id", columns={"tender_id"}), @ORM\Index(name="user_id", columns={"user_id"}), @ORM\Index(name="b_id", columns={"b_id"}), @ORM\Index(name="status", columns={"status"})})
 * @ORM\Entity
 */
class P2pFcodeTender
{
    /**
     * @var integer
     *
     * @ORM\Column(name="period", type="integer", nullable=false)
     */
    private $period = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="total_period", type="integer", nullable=false)
     */
    private $totalPeriod = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="tender_id", type="integer", nullable=false)
     */
    private $tenderId;

    /**
     * @var integer
     *
     * @ORM\Column(name="user_id", type="integer", nullable=false)
     */
    private $userId;

    /**
     * @var integer
     *
     * @ORM\Column(name="red_id", type="integer", nullable=false)
     */
    private $redId;

    /**
     * @var integer
     *
     * @ORM\Column(name="b_id", type="integer", nullable=false)
     */
    private $bId;

    /**
     * @var float
     *
     * @ORM\Column(name="rate", type="float", precision=6, scale=3, nullable=false)
     */
    private $rate;

    /**
     * @var float
     *
     * @ORM\Column(name="amount", type="float", precision=10, scale=2, nullable=false)
     */
    private $amount;

    /**
     * @var float
     *
     * @ORM\Column(name="income", type="float", precision=10, scale=2, nullable=false)
     */
    private $income;

    /**
     * @var float
     *
     * @ORM\Column(name="real_income", type="float", precision=10, scale=2, nullable=false)
     */
    private $realIncome;

    /**
     * @var boolean
     *
     * @ORM\Column(name="status", type="boolean", nullable=false)
     */
    private $status = '0';

    /**
     * @var boolean
     *
     * @ORM\Column(name="code", type="boolean", nullable=false)
     */
    private $code = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="invest_time", type="integer", nullable=false)
     */
    private $investTime;

    /**
     * @var integer
     *
     * @ORM\Column(name="loan_time", type="integer", nullable=false)
     */
    private $loanTime = '0';

    /**
     * @var integer
     *
     * @ORM\Column(name="audit_time", type="integer", nullable=false)
     */
    private $auditTime;

    /**
     * @var integer
     *
     * @ORM\Column(name="pay_time", type="integer", nullable=false)
     */
    private $payTime;

    /**
     * @var string
     *
     * @ORM\Column(name="serial_number", type="string", length=60, nullable=false)
     */
    private $serialNumber;

    /**
     * @var integer
     *
     * @ORM\Column(name="ftid", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $ftid;



    /**
     * Set period
     *
     * @param integer $period
     *
     * @return P2pFcodeTender
     */
    public function setPeriod($period)
    {
        $this->period = $period;

        return $this;
    }

    /**
     * Get period
     *
     * @return integer
     */
    public function getPeriod()
    {
        return $this->period;
    }

    /**
     * Set totalPeriod
     *
     * @param integer $totalPeriod
     *
     * @return P2pFcodeTender
     */
    public function setTotalPeriod($totalPeriod)
    {
        $this->totalPeriod = $totalPeriod;

        return $this;
    }

    /**
     * Get totalPeriod
     *
     * @return integer
     */
    public function getTotalPeriod()
    {
        return $this->totalPeriod;
    }

    /**
     * Set tenderId
     *
     * @param integer $tenderId
     *
     * @return P2pFcodeTender
     */
    public function setTenderId($tenderId)
    {
        $this->tenderId = $tenderId;

        return $this;
    }

    /**
     * Get tenderId
     *
     * @return integer
     */
    public function getTenderId()
    {
        return $this->tenderId;
    }

    /**
     * Set userId
     *
     * @param integer $userId
     *
     * @return P2pFcodeTender
     */
    public function setUserId($userId)
    {
        $this->userId = $userId;

        return $this;
    }

    /**
     * Get userId
     *
     * @return integer
     */
    public function getUserId()
    {
        return $this->userId;
    }

    /**
     * Set redId
     *
     * @param integer $redId
     *
     * @return P2pFcodeTender
     */
    public function setRedId($redId)
    {
        $this->redId = $redId;

        return $this;
    }

    /**
     * Get redId
     *
     * @return integer
     */
    public function getRedId()
    {
        return $this->redId;
    }

    /**
     * Set bId
     *
     * @param integer $bId
     *
     * @return P2pFcodeTender
     */
    public function setBId($bId)
    {
        $this->bId = $bId;

        return $this;
    }

    /**
     * Get bId
     *
     * @return integer
     */
    public function getBId()
    {
        return $this->bId;
    }

    /**
     * Set rate
     *
     * @param float $rate
     *
     * @return P2pFcodeTender
     */
    public function setRate($rate)
    {
        $this->rate = $rate;

        return $this;
    }

    /**
     * Get rate
     *
     * @return float
     */
    public function getRate()
    {
        return $this->rate;
    }

    /**
     * Set amount
     *
     * @param float $amount
     *
     * @return P2pFcodeTender
     */
    public function setAmount($amount)
    {
        $this->amount = $amount;

        return $this;
    }

    /**
     * Get amount
     *
     * @return float
     */
    public function getAmount()
    {
        return $this->amount;
    }

    /**
     * Set income
     *
     * @param float $income
     *
     * @return P2pFcodeTender
     */
    public function setIncome($income)
    {
        $this->income = $income;

        return $this;
    }

    /**
     * Get income
     *
     * @return float
     */
    public function getIncome()
    {
        return $this->income;
    }

    /**
     * Set realIncome
     *
     * @param float $realIncome
     *
     * @return P2pFcodeTender
     */
    public function setRealIncome($realIncome)
    {
        $this->realIncome = $realIncome;

        return $this;
    }

    /**
     * Get realIncome
     *
     * @return float
     */
    public function getRealIncome()
    {
        return $this->realIncome;
    }

    /**
     * Set status
     *
     * @param boolean $status
     *
     * @return P2pFcodeTender
     */
    public function setStatus($status)
    {
        $this->status = $status;

        return $this;
    }

    /**
     * Get status
     *
     * @return boolean
     */
    public function getStatus()
    {
        return $this->status;
    }

    /**
     * Set code
     *
     * @param boolean $code
     *
     * @return P2pFcodeTender
     */
    public function setCode($code)
    {
        $this->code = $code;

        return $this;
    }

    /**
     * Get code
     *
     * @return boolean
     */
    public function getCode()
    {
        return $this->code;
    }

    /**
     * Set investTime
     *
     * @param integer $investTime
     *
     * @return P2pFcodeTender
     */
    public function setInvestTime($investTime)
    {
        $this->investTime = $investTime;

        return $this;
    }

    /**
     * Get investTime
     *
     * @return integer
     */
    public function getInvestTime()
    {
        return $this->investTime;
    }

    /**
     * Set loanTime
     *
     * @param integer $loanTime
     *
     * @return P2pFcodeTender
     */
    public function setLoanTime($loanTime)
    {
        $this->loanTime = $loanTime;

        return $this;
    }

    /**
     * Get loanTime
     *
     * @return integer
     */
    public function getLoanTime()
    {
        return $this->loanTime;
    }

    /**
     * Set auditTime
     *
     * @param integer $auditTime
     *
     * @return P2pFcodeTender
     */
    public function setAuditTime($auditTime)
    {
        $this->auditTime = $auditTime;

        return $this;
    }

    /**
     * Get auditTime
     *
     * @return integer
     */
    public function getAuditTime()
    {
        return $this->auditTime;
    }

    /**
     * Set payTime
     *
     * @param integer $payTime
     *
     * @return P2pFcodeTender
     */
    public function setPayTime($payTime)
    {
        $this->payTime = $payTime;

        return $this;
    }

    /**
     * Get payTime
     *
     * @return integer
     */
    public function getPayTime()
    {
        return $this->payTime;
    }

    /**
     * Set serialNumber
     *
     * @param string $serialNumber
     *
     * @return P2pFcodeTender
     */
    public function setSerialNumber($serialNumber)
    {
        $this->serialNumber = $serialNumber;

        return $this;
    }

    /**
     * Get serialNumber
     *
     * @return string
     */
    public function getSerialNumber()
    {
        return $this->serialNumber;
    }

    /**
     * Get ftid
     *
     * @return integer
     */
    public function getFtid()
    {
        return $this->ftid;
    }
}
